package com.noocodecommit.wicket.jquery.plugin.ui.colorpicker;

import com.noocodecommit.wicket.jquery.TemplatePage;
import com.noocodecommit.wicket.stuff.jquery.JQCore;
import com.noocodecommit.wicket.stuff.jquery.plugin.chili.JQChili;
import com.noocodecommit.wicket.stuff.jquery.plugin.ui.colorpicker.JQColorPicker;
import com.noocodecommit.wicket.stuff.jquery.plugin.ui.tabs.JQTabs;

public class ColorPickerPage extends TemplatePage
{

	private static final long serialVersionUID = 1L;
	private final JQTabs tabContainer;

	public ColorPickerPage()
	{
		super();
		JQCore.init(this);
		this.setupChili();

		tabContainer = new JQTabs("tab-container");
		tabContainer.setOutputMarkupId(true);
		add(tabContainer);

		JQColorPicker colorpicker0 = new JQColorPicker("colorpicker0");
		colorpicker0.setOutputMarkupId(true);
		tabContainer.add(colorpicker0);

		/**
		 * 
		 */

		JQChili chili1 = new JQChili("chili1");
		add(chili1);
		this.bindChiliCode(chili1, this.getClass(), "html");

		JQChili chili2 = new JQChili("chili2");
		add(chili2);
		this.bindChiliCode(chili2, this.getClass(), "java");
		
		JQCore.get().bindOnDocumentReadyFunction();
	}
}
